<!DOCTYPE html>
<html>
<!--
Copyright 2006 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Closure Unit Tests - goog.events.EventTarget</title>
<script src="../base.js"></script>
<script>
  goog.require('goog.events.eventTargetTester');
  goog.require('goog.events.eventTargetTester.KeyType');
  goog.require('goog.events.eventTargetTester.UnlistenReturnType');
  goog.require('goog.testing.jsunit');
</script>
</head>
<body>
<script>

function setUp() {
  var listenFn = function(src, type, listener, opt_capt, opt_handler) {
    src.addEventListener(type, listener, opt_capt, opt_handler);
  };
  var unlistenFn = function(src, type, listener, opt_capt, opt_handler) {
    src.removeEventListener(type, listener, opt_capt, opt_handler);
  };
  var dispatchEventFn = function(src, e) {
    return src.dispatchEvent(e);
  };

  goog.events.eventTargetTester.setUp(
      listenFn, unlistenFn,
      null /* listenOnceFn */, dispatchEventFn,
      goog.events.eventTargetTester.KeyType.UNDEFINED,
      goog.events.eventTargetTester.UnlistenReturnType.UNDEFINED);
}

function tearDown() {
  goog.events.eventTargetTester.tearDown();
}

</script>
</body>
</html>
